import request from '/@/utils/request'

import {module} from '/@/api/ums'

const prefix = module + "/businessScope/"

/**
 * 客户经营范围 API
 */
export function umsBusinessScopeListApi() {
    return {
        add: (data?: any): any => request({url: prefix + 'add', method: 'post', data,}),
        edit: (data?: any): any => request({url: prefix + 'edit', method: 'put', data,}),
        del: (data?: any): any => request({url: prefix + 'del', method: 'delete', data,}),
        query: (params: any): any => request({url: prefix + 'query', method: 'get', params}),
        batchVisible: (data?: any): any => request({url: prefix + 'batchVisible', method: 'put', data,}),
        prefix,
    };
}
